package com.yss.sofa.report.engine.cell.page.header;

import com.yss.sofa.report.engine.cell.ReportCell;

public class HeaderCell extends ReportCell{
	private static final long serialVersionUID = 4719340869666953627L;
	protected int index;
	protected String visible;//visible属性值，fstring
	protected boolean escape;
	protected boolean autoSize;
	protected void init() {
		super.init();
		this.visible="true";
		this.index=0;
		this.escape=false;
		this.autoSize=false;
	}
	public void assignTo(ReportCell cell){
		HeaderCell _=(HeaderCell)cell;
		super.assignTo(_);
		_.index=this.index;
		_.visible=this.visible;
		_.escape=this.escape;
		_.autoSize=this.autoSize;
	}
	public HeaderCell create(){
		HeaderCell _=new HeaderCell();
		this.assignTo(_);
		return _;
	}
	public String getVisible() {
		return visible;
	}
	public void setVisible(String visible) {
		this.visible = visible;
	}
	public int toPixel(){
		throw new UnsupportedOperationException();
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public boolean isEscape() {
		return escape;
	}
	public void setEscape(boolean escape) {
		this.escape = escape;
	}
	public boolean isAutoSize() {
		return autoSize;
	}
	public void setAutoSize(boolean autoSize) {
		this.autoSize = autoSize;
	}
}
